A strong nonrandom pattern in Matlab default random number generator

نویسنده

  • Petr Savicky
چکیده

The default random number generator in Matlab versions between 5 and at least 7.3 (R2006b) has a strong dependence between the numbers zi+1, zi+16, zi+28 in the generated sequence. In particular, there is no index i such that the inequalities zi+1 < 1/4, 1/4 ≤ zi+16 < 1/2, and 1/2 ≤ zi+28 are satisfied simultaneously. This fact is proved as a consequence of the recurrence relation defining the generator. A random sequence satisfies the inequalities with probability 1/32. Another example demonstrating the dependence is a simple function f with values −1 and 1, such that the correlation between f(zi+1, zi+16) and sign(zi+28 − 1/2) is at least 0.416, while it should be zero. A simple distribution on three variables that closely approximates the joint distribution of zi+1, zi+16, zi+28 is described. The region of zero density in the approximating distribution has volume 4/21 in the three dimensional unit cube. For every integer 1 ≤ k ≤ 10, there is a parallelepiped with edges 1/2, 1/2 and 1/2, where the density of the distribution is 2. Numerical simulation confirms that the distribution of the original generator matches the approximation within small random error corresponding to the sample size.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Learning Random Numbers: a MATLAB Anomaly

We describe how dependencies between random numbers generated with some popular pseudorandom number generators can be detected using general purpose machine learning techniques. This is a novel approach, since usually, pseudorandom number generators are evaluated using tests specifically designed for this purpose. Such specific tests are more sensitive. Hence, detecting the dependence using mac...

متن کامل

Chapter 9 Random Numbers

This chapter describes algorithms for the generation of pseudorandom numbers with both uniform and normal distributions. This is the first number produced by the Matlab random number generator with its default settings. Start up a fresh Matlab, set format long, type rand, and it's the number you get. If all Matlab users, all around the world, all on different computers, keep getting this same n...

متن کامل

A Comparison of Three Random Number Generators for Aircraft Dynamic Modeling Applications

Three random number generators, which produce Gaussian white noise sequences, were compared to assess their suitability in aircraft dynamic modeling applications. The first generator considered was the MATLAB R implementation of the Mersenne-Twister algorithm. The second generator was a website called Random.org, which processes atmospheric noise measured using radios to create the random numbe...

متن کامل

Chaos Machine: Different Approach to the Application and Significance of Numbers

In this paper we describe a theoretical model of chaos machine, which combines the benefits of hash function and pseudo-random function, forming flexible one-way push-pull interface. It presents the idea to create a universal tool (design pattern) with modular design and customizable parameters, that can be applied where randomness and sensitiveness is needed (random oracle), and where appropri...

متن کامل

Text Encryption Algorithms based on Pseudo Random Number Generator

This paper presents algorithms for encryption and decryption developed using pseudo random number generator (PRNG) and non-Linear functions. PRNG used in the work are matlab random number generator (RNG) and Linear congruential generator (LCG). The developed algorithms are named according to PRNG used in it. State of PRNG is considered as secret key of the cipher. The encryption schemes have be...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2006